#include <stdio.h>
#define MAX 255

int main() {
    int scores[MAX], score, i;
    int max = 0, min = 100;
    int unpass = 0, count = 0;
    float sum = 0.0, average;

    scanf("%d", &score);
    while (score > 0) {
        scores[count++] = score;
        scanf("%d", &score);
    }

    for (i = 0; i < count; i++) {
        if (scores[i] < 60) {
            unpass ++;
        }
        if (max < scores[i]) {
            max = scores[i];
        }
        if (min > scores[i]) {
            min = scores[i];
        }
        sum += scores[i];
    }
    average = sum / count;

    printf("sum: %f, average: %f\n", sum, average);
    printf("max: %d, min: %d\n", max, min);
    printf("unpass: %d\n", unpass);

    return 0;
}
